package com.danbay.cloud.lock.device.constant;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * @author yangyanchen on 2017/12/21
 *         Copyright © 2016 －2017 旦倍科技
 */
public class LockPwdConstant {

    public static final Map<Integer,String> DEVICE_LOCK_PWD_TYPE_MAP = Maps.newConcurrentMap();


    public static final String DEVICE_LOCK_NORMAL_PWD = "1";
    public static final String DEVICE_LOCK_PRE_PWD = "2";
    public static final String DEVICE_LOCK_HARD_WARE_PWD = "3";

    //密码常量
    public static final String LOCK_PWD_NORMAL = "0";

    public static final String LOCK_PWD_FREEZING = "1";
    public static final String LOCK_PWD_FREEZED = "2";
    public static final String LOCK_PWD_EFFECTED = "3";
    public static final String LOCK_PWD_EFFECTING = "4";

    public static final String LOCK_STATUS_HAS_SYNC = "0";

    public static final String LOCK_STATUS_HAS_NOT_SYNC = "1";

    public static final String LOCK_OPERATION_SUCCESS_CODE = "1";

    public static final String LOCK_OPERATION_SUCCESS = "操作成功";

    public static final String LOCK_PRE_PASSWORD_OPERATING = "0";
    public static final String LOCK_PRE_PASSWORD_EFFECTED = "1";

    static {
        DEVICE_LOCK_PWD_TYPE_MAP.putIfAbsent(0,"临时密码");
        DEVICE_LOCK_PWD_TYPE_MAP.putIfAbsent(1,"管理员密码");
        DEVICE_LOCK_PWD_TYPE_MAP.putIfAbsent(2,"管家密码");
        DEVICE_LOCK_PWD_TYPE_MAP.putIfAbsent(3,"房客密码");
        DEVICE_LOCK_PWD_TYPE_MAP.putIfAbsent(4,"感应卡");
    }
}
